﻿using Microsoft.Data.Sqlite;
using System.Data;

namespace MiniApiProject.Data;

public class DbConnectionFactory(string connectionString) : IDbConnectionFactory
{
	public async Task<IDbConnection> GetConnection()
	{
		using var connection = new SqliteConnection(connectionString);
		await connection.OpenAsync();
        return connection;
	}
}
